<?php
/**
 * Introduction: 商品订单  order
 * @author: 杨陈鹏
 * @date: 2016/4/19 15:30
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class OrderModel extends Model\RelationModel
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'id',
        'uid',
        'addr_id',
        'create_time',
        'pay_time',
        'receive_time',
        'send_time',
        'receipt_time',
        'apply_refund_time',
        'refund_time',
        'complete_time',
        'close_time',
        'express_id',
        'express_name',
        'express_s_id',
        'express_s_name',
        'freight',
        'close_time',
        'order_price_total',
        'status',
        'pay_type',
        'third_number',
        'third_accounts',
        'third_use_account',
        'is_delete',
        'description_freight',
        'description_price',
        'comment_time',
        'express_number',
        'send_address',
        'send_address_id',
        'volume_id',
        'end_time',
        'balance_pay_nums',
        'third_pay_nums',
    ];
    //定义表名
    protected $tableName = '`order`';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }
}